package mysql

import "gorm.io/gorm"

type Moment struct {
	gorm.Model
	UserId   int64  `gorm:"type:int(11);not null;comment:'用户id'"`
	Context  string `gorm:"type:varchar(1000);not null;comment:'朋友圈内容'"`
	Address  string `gorm:"type:varchar(200);not null;comment:'发送地址'"`
	Like     int64  `gorm:"type:int(11);not null;comment:'点赞数'"`
	Resource string `gorm:"type:varchar(500);not null;comment:'资源  图片以及视频'"`
}

type AllMoment struct {
	gorm.Model
	UserId   int64
	Context  string
	Address  string
	Like     int64
	Resource string
	Name     string
}
